package com.dome.mvp.model.impl;


import androidx.fragment.app.Fragment;

import com.dome.mvp.base.ICallBack;
import com.dome.mvp.bean.MainBean;
import com.dome.mvp.fragment.ChatFragment;
import com.dome.mvp.fragment.HomeFragment;
import com.dome.mvp.fragment.MineFragment;
import com.dome.mvp.fragment.SquareFragment;
import com.dome.mvp.model.IMainModel;

import java.util.ArrayList;
import java.util.List;

/**
 * Time: 6/1/2021 9:53
 * Author: TAO
 * Description:
 */
public class MainModelImpl implements IMainModel<List<Fragment>> {

    @Override
    public void showData(ICallBack<List<Fragment>> back) {
        back.success(getData());
    }


    public List<Fragment> getData() {
        ArrayList<Fragment> list = new ArrayList<>();
        list.add(new HomeFragment());
        list.add(new SquareFragment());
        list.add(new ChatFragment());
        list.add(new MineFragment());
        return list;
    }
}
